<template>
  <view class="container">
    <!-- v-if="isHrOrBoss"-->
    <block>
      <custom-CompanyInfo />
      <view
        class="item common-bg-white flex-row-align-center"
        @click="handleTap"
        data-type="department"
        :data-value="department"
        :data-arr="departments"
      >
        <view :class="['flex', !department.name && 'placeholder-class']">{{
          department.name || "选择部门"
        }}</view>
        <image
          src="https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/common/arrowDown.png"
        />
      </view>

      <view
        class="item common-bg-white flex-row-align-center"
        @click="handleTap"
        data-type="date"
        :data-value="date"
        :data-arr="dateArr"
      >
        <view :class="['flex', !date.val && 'placeholder-class']">{{
          date.val || "选择时间"
        }}</view>
        <image
          src="https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/common/arrowDown.png"
        />
      </view>

      <EmployeeStatistics :usersResult="usersResult"/>

      <custom-CommonPickerPop
        ref="commonPickerPop"
        @onConfirm="handleDatePikcer"
      />
    </block>
   <!-- <custom-emptyMsg v-else content="--暂无查看权限--" /> -->
  </view>
</template>
<script src="./indexMod.js" />
<style src="./indexStyle.scss" lang="scss" scoped>
</style>